package com.zsk.Userbiz;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zsk.model.User;

/**
 * 控制器
 */
@Controller
public class userBiz {
	@Autowired
private User user;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
@RequestMapping("/ks")
	public String name(){
		
		return "x";	
	}
@RequestMapping("/ka")
public String tst(){
	user.setAge("20");
	user.setName("jack");
	return "x";	
}
@RequestMapping("/kss")
@ResponseBody
public User tsta(){
	user.setAge("220");
	user.setName("jackyhu");
	return user;	
}
}
